package com.ijustyce.kotlin

/**
 * Created by yc on 2015/11/28 0026.
 *
 * 入门练习而已
 */

fun main(args: Array<String>){

    var a = 10
    var b = 9
    var c = "Hello World"

    println("a is is ${a} and b is ${b} , a + b is ${add(a, b)} , c is ${c}")

    sayHello()

    sayHello("ijustyce")
}

fun add(a : Int, b : Int, c : Int = 10) : Int = a + b + c

fun sayHello(name : String) {

    println("Hello World, Hello ${name}");
}

fun sayHello() : Unit{

    println("Hello World, Hello kotlin");
}
